/**
 * 
 */
package org.bitmap.mm.util;

import java.lang.ref.WeakReference;

import android.graphics.Bitmap;
import android.widget.ImageView;

/**
 * @author hljdrl@gmail.com
 *
 */
 class ImageData {
	 final WeakReference<ImageView> imageViewReference;
	 /**
	  * ICON图标
	  * */
	 public static final int IMAGE_TYPE_THUMBNAIL = 0;
	 /**
	  * 中、大图片
	  * */
     public static final int IMAGE_TYPE_NORMAL = 1;
     /**
      * 图片的URL地址
      * */
     public String mKey;
     public int mType;
     public int imageWidth;
     public Bitmap.Config bitConfig;

     public ImageData(String key,ImageView imageView, int imgWidth,
 			Bitmap.Config config, int type) {
         mKey = key;
         mType = type;
         imageViewReference = new WeakReference<ImageView>(imageView);
 		 imageWidth = imgWidth;
 		 bitConfig = config;
     }

     @Override
     public String toString() {
         return mKey;
     }
   
}
